Release 10.1A: OpenEdge Deployment:
Managing 4GL Applications
Searching progress.ini and the Registry at startup
At startup, OpenEdge searches for a Registry location, a
Note: Theprogress.inifile, or both. The particular search path depends upon the parameters you specify with theprowin32command, particularly the Registry Base Key (-basekey) and Initialization File (-ininame) parameters. You can use these parameters to create a more efficient search at startup.-basekeyand-ininameparameters can only be used on the command line. You cannot use them within a parameter file.Figure 4–1 illustrates the path that OpenEdge follows when searching for environment information in Windows.
Figure 4–1: Windows environment information search path
![]()
When OpenEdge does not find environment information in the Registry, or when it was started with the
-basekeyINI startup parameter, it searches through directories for aprogress.inifile in the following order:This search order fosters deployment flexibility because you can:
After OpenEdge locates the environment information, OpenEdge reads the values for
DLC,PROMSGS, and other environment variables. For each variable, OpenEdge first searches the location where it found the environment information. If OpenEdge does not find the variable, it searches for an operating system environment variable.OpenEdge expects to find all environment settings in the same location it finds the environment variables. There is one exception: OpenEdge searches
HKEY_CURRENT_USERandHKEY_LOCAL_MACHINEfirst when it starts without the-basekeyparameter and finds the environment information in the Registry. If OpenEdge writes a value to the Registry, however, it will always write it toHKEY_CURRENT_USER. This allows multiple users of a single machine to customize settings individually. The environment setting location could be either a Registry key or an initialization file, but not both.The Progress 4GL
GET-KEY-VALUEstatement also searches for user environment information. TheGET-KEY-VALUEstatement searches either the Registry or aprogress.inifile, but not both. WhenGET-KEY-VALUEsearches the Registry, it searches both of theHKEY_CURRENT_USERandHKEY_LOCAL_MACHINEkeys if the following conditions are true:The Progress 4GL
PUT-KEY-VALUEstatement writes to the location where the environment information was found at startup. If that location is the Registry, and if the prowin32 command did not include the-basekeyparameter at startup, thePUT-KEY-VALUEstatement writes to theHKEY_CURRENT_USERkey and not to theHKEY_LOCAL_MACHINEkey.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |